package permission

import "context"

type PermissionRepositoryIface interface {
	// PermissionListByMenuIds 获取菜单下的权限列表
	PermissionListByMenuIds(ctx context.Context, menuIds []int64) ([]*GfyxPermission, error)
	// PermissionListByIds 获取权限列表
	PermissionListByIds(ctx context.Context, ids []int64) ([]*GfyxPermission, error)
	// GetPermissionByUserId 获取用户的权限列表
	GetPermissionByUserId(ctx context.Context, userId int64) ([]*GfyxPermission, error)
}
